Insert two buttons to switch the display modes:
Button2 Onselect: NewForm(YourFormName)
Button1 Onselect: EditForm(YourFormName)
Again for edit, you can put: Gallery1.Selected in the ITEM of the form
I believe clicking the buttons will resolve it.
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.