shifted to views for html to enable routing