Refactor user interface using devise