used .prepend() instead of .before()