#488 created advanced search form and fixed some small bugs