addded first version of gallery viewer