changing dinning from Main to Fragment