Managed to optimize the search function, fixed small CSS and html issues.