Method addFragment has been moved to onClick ones.