resolving a problem with html elements