fixed bug with regular dom manipulation. switched to jquery call