better written with angular js and switched to ui-router