updated onClick listener for creating Fragment