Clean code and update styles of library and eventpage