Refactor frontend into separate admin and user templates