added CSS, added edit page, refactoring

Refactoring is to allow new and other methods to take the hash directly
as the parameter