Page refresh now also prevented in case of compile error. Adds a placeholder for F1 key press