init function for apps page
merge