Refactor application layout
Refactor edit registration and controllers