premature commit of swipeview and image gallery