Fixing problmes with appending after css pseudoclasses