Minor additions

Added PX to EM function, rewritten buttons and forms modules and
reordered imports.