Prevent tab changes when clicking 'New Beer' and 'Cancel'

Currently, when clicking the 'New beer...' button or the 'Cancel' button on the new beer form, the tab changes to the 'Home' tab. This pull request addresses this issue.