Try to merge the drawer function