Added function to button, Message Alert, and naigational ability