add responsive function to navigation