added buttons to gallery