changing some units to em instead of using px and some overall bug fixes