added onclick for main fragment