Refactor backend btn

Refactor backend button to make use of the TemplatedView so that we can use precompiled templates.