Cleaned up code

Refactored redundant code and changed text from px to em.