Added api call to route, added javascript funcionality to select
and pageload