renamed some functions and now the form is cleared when you create a beacon.