improved panel placement

Currently for y only.
top_position was not being updated on window size