Deleted gallery as main, made procedure as main for before and after