brings links or box to front depending on the lock status of the page