Adding a possibility to not hide the view on button click