refactor user app to implement flat UI.