added json request to get data for details and css to flip tile