Added frontediting check