setup all items needed for view loading