Preflop is ugly yes (I'd personally wait for a better hand) but I guess you played the hand ok on the later streets.