Add new methods and finished work on gallery modal view