about to try seperate view and js