bug fix on plan page that causes internal server error
bug fix on autocomplete in plan page