added funcionality to NewActivity buttons