made changes so when no results are found it displays 'sorry' message
fixing the javascript mess. backend works fine now. application is a lot neater. front end jquery needs fixing.
quick update.
changes made to javascripts on front end. all working now including calendar.