Refactor handler

Refactor static file and 404!