created nav groovy script for navigation