implemented native flash button