Event listener for taking care of accept formats and format views