updated gallery button actions