Template Bug Fixes and Redirect/Response functionality added