updating stack functionality - borders and padding