loading views correctly now