expansion of objects onclick semi-funtional