fixes for resize and positioning helper functions and alerts