move common views to widgets