moved views and added uid verification